<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<table width="99%" border="0" class=tablecolor2>
	<tr>
		<td width="16%" align="center" bgcolor="D6E3FA">
			办理步骤
		</td>
		<td width="30%" align="center" bgcolor="D6E3FA">
			附件名称
		</td>
		<td width="16%" align="center" bgcolor="D6E3FA">
			附件类型
		</td>
		
		<td width="12%" align="center" bgcolor="D6E3FA">
			上传人员
		</td>
		<td width="16%" align="center" bgcolor="D6E3FA">
			上传时间
		</td>
		<td width="8%" align="center" bgcolor="D6E3FA">
			删除
		</td>
	</tr>
	<c:forEach items="${reqDocuList }" var="listOne">
	<tr>
		<c:if test="${listOne.length!=null}">
		<td style="text-align: center" rowspan="${listOne.length }">
			${listOne.processDetail.name}
		</td>
		</c:if>
		<td>
			<a href="<c:url value="/bpm/showDocu.action?reqDocu.id="/>${listOne.id}"
				target="_blank">
				${listOne.fullName}
			</a>
		</td>
		<td style="text-align: center">
			${listOne.docType.name}
		</td>

		<td style="text-align: center">
			${listOne.creator}
		</td>
		<td style="text-align: center">
			<fmt:formatDate value="${listOne.begin }" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		<td style="text-align: center">
		
			<c:if test="${taskView.procTranRecord.state!='end'}">
			<c:if test="${taskView.procTranRecord.processStep.id==listOne.processDetail.id}">
			<input type="checkbox" name="delDocumentIds" value="${listOne.id}"/>
			</c:if>
			</c:if>
		</td>																	
	</c:forEach>
</table>
<br/>
【<a href="appDocTemplete_findDocList.action" target="_blank" style="color: red;">文档模板下载</a>】
<c:if test="${taskView.procTranRecord!=null&&taskView.procTranRecord.state!='end'}">
<table width="99%" border="0" class=tablecolor2>
                   <tr>
                     <td width="" colspan="2" align="left" bgcolor="D6E3FA">
                    	附件上传&nbsp;&nbsp;&nbsp; 	
					</td>
                   </tr>
				   <c:forEach items="${taskView.documentTypes }" var="listOne">
                   <tr>
                     
                     <td style="text-align: right">
                     	<font color="red">*</font>${listOne.name}：
                     	<input type="hidden" id="filetype" name="filetype" value="${listOne.id}"/>
                     </td>
                     <td>
						<c:choose>
                     	<c:when test="${listOne.require}">
                     	<input type="file" name="uploads" size="40" dataType="Require" msg="请选择要上传的文件" />
                     	</c:when>
                     	<c:otherwise>
                     		<input type="file" name="uploads" size="40"/>
						</c:otherwise>
						</c:choose>
                     </td>
                     
                   </tr>
                   </c:forEach>
                   <jsp:include page="taskDocOtherFile.inc.jsp"></jsp:include>										                        										                        
      </table>
      </c:if>

